/*******************************************************************************
 * Copyright (c) 2009 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package com.cip.client.modelo.matricula;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.cip.client.modelo.BaseRecord;

/**
 * 
 * @author Aleksandras Novikovas
 * @author System Tier
 * @version 1.0
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class PagosRecord extends BaseRecord implements Serializable {

	

	/**
	 * 
	 */
	private static final long serialVersionUID = -6743582040864452361L;

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
	private String id;

	@Persistent
	private Float importe;

	@Persistent
	private String empleadoCobrador;

	@Persistent
	private String modoPago;

	@Persistent
	private Date fechaCobro;

	public PagosRecord() {

	}

	@Override
	public void copia(BaseRecord record) {
		setImporte(((PagosRecord) record).getImporte());
		setEmpleadoCobrador(((PagosRecord) record).getEmpleadoCobrador());
		setModoPago(((PagosRecord) record).getModoPago());
		setFechaCobro(((PagosRecord) record).getFechaCobro());
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Float getImporte() {
		return importe;
	}

	public void setImporte(Float importe) {
		this.importe = importe;
	}

	public String getEmpleadoCobrador() {
		return empleadoCobrador;
	}

	public void setEmpleadoCobrador(String empleadoCobrador) {
		this.empleadoCobrador = empleadoCobrador;
	}

	public String getModoPago() {
		return modoPago;
	}

	public void setModoPago(String modoPago) {
		this.modoPago = modoPago;
	}

	public Date getFechaCobro() {
		return fechaCobro;
	}

	public void setFechaCobro(Date fechaCobro) {
		this.fechaCobro = fechaCobro;
	}

}
